import { FetchMaterialListData } from "./apiTypes"
import request from "/@/utils/request"

/**
 * 获取物料
 * @param data
 */
export function GetMaterials(data?: FetchMaterialListData) {
    return request({
        url: '/wms/material/GetMaterialBySort',
        method: 'post',
        data: data
    })
}

/**
 * 获取物料分类
 * @param data
 */
export function GetMaterialSort(data?: any) {
    return request({
        url: '/wms/material/GetMaterialSort',
        method: 'post',
        data: data
    })
}